package fly;

import fly.mapper.UserMapper;
import fly.pojo.User;
import fly.service.UserServiceImpl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = ShiroApp.class)
public class mappertest {

    @Autowired
    private UserServiceImpl userService;
    @Test
    public void test1(){
        User admin = userService.findByUsername("admin");
        System.out.println(admin);
    }
}
